<?php

class Service_Note {
    
    /**
     * 返回留言列表
     * @param type $page
     * @param type $pageSize
     * @return array
     */
    public static function getNoteList($page, $pageSize) {
        
        try {
            return Model_Note::getNoteList($page, $pageSize);
        } catch (Exception $ex) {
            if ($ex->getCode() === Model_Exception::E_PARAM_ERROR) {
                throw new API_Exception('get notelist param error: '.$ex->getMessage(), API_Exception::E_PARAM_ERROR);
            }
            throw new API_Exception('get note list failed:'.$ex->getMessage(), API_Exception::E_LOGIC_ERROR);
        }
    }
    
}